<?php

ini_set('display_errors', 1);
error_reporting(-1);
require_once '/data/wwwroot/g_vendor/autoload.php';

use Biz\cache\SkuBase;

$goodsId = 4707;

while (true) {

	list($caches, $noCache) = SkuBase::pHGetAllItems([$goodsId]);
	if ($caches) foreach ($caches[$goodsId] as $skuId => $skuInfo) {
		if(!isset($skuInfo['volume'])) {
			SkuBase::delItem($goodsId);
			echo "delCache:" . $goodsId . "\r\n";
		} else {
			echo "no delCache:" . $goodsId . "\r\n";
		}
	}

	$goodsId++;

}
